package com.gulimall.auth.feign.impl;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.SocialVO;
import com.gulimall.auth.feign.MemberFeignService;
import com.gulimall.auth.vo.UserLoginVo;
import com.gulimall.auth.vo.UserRegisterVo;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author lhj
 * @Date 2024/3/2 20:13
 */
@Component
public class MemberFeignServiceFallback implements MemberFeignService {
    @Override
    public R login(UserLoginVo userLoginVo) {
        return R.error("远程调用member服务进行登录失败");
    }

    @Override
    public R registerMember(UserRegisterVo registerMemberVo) {
        return R.error("远程调用member服务注册会员失败");
    }

    @Override
    public R socialLogin(SocialVO socialVO) {
        return R.error("远程调用member服务注册会员失败");
    }
}
